<?php /* Smarty version 2.6.26, created on 2010-05-07 15:36:22
         compiled from admin/ruler.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="webapps/styles/table_dis.css" />
<link type="text/css" rel="stylesheet" href="webapps/admin/stylesheets/admin.css" />
<script type="text/javascript" src="webapps/scripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	//$("#tab tr").hover(
					   //function(){$(this).addClass("over");}),function(){$(this).removeClass("over");};
					   //function(){$(this).css("background","red");})
	$("#tab tr").hover(function(){$(this).css("background","#DEEBFC");},function(){$(this).css("background","#FFF");});
});
</script>
<title><?php echo $this->_tpl_vars['title']; ?>
</title>
</head>

<body>
<table width="100%" cellpadding="1" cellspacing="1" border="0" id="tab">
  <tr>
    <th colspan="7" style="background-color:#4F9AD0;">管理员信息</th>
  </tr>
  <tr>
    <td width="10%">管理员编号</td>
    <td width="20%">管理员名称</td>
    <td width="20%">管理员类型</td>
    <td width="20%">创建时间</td>
    <td colspan="3">操作</td>
  </tr>
  <?php unset($this->_sections['tmp_res_admin']);
$this->_sections['tmp_res_admin']['name'] = 'tmp_res_admin';
$this->_sections['tmp_res_admin']['loop'] = is_array($_loop=$this->_tpl_vars['res_admin']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['tmp_res_admin']['show'] = true;
$this->_sections['tmp_res_admin']['max'] = $this->_sections['tmp_res_admin']['loop'];
$this->_sections['tmp_res_admin']['step'] = 1;
$this->_sections['tmp_res_admin']['start'] = $this->_sections['tmp_res_admin']['step'] > 0 ? 0 : $this->_sections['tmp_res_admin']['loop']-1;
if ($this->_sections['tmp_res_admin']['show']) {
    $this->_sections['tmp_res_admin']['total'] = $this->_sections['tmp_res_admin']['loop'];
    if ($this->_sections['tmp_res_admin']['total'] == 0)
        $this->_sections['tmp_res_admin']['show'] = false;
} else
    $this->_sections['tmp_res_admin']['total'] = 0;
if ($this->_sections['tmp_res_admin']['show']):

            for ($this->_sections['tmp_res_admin']['index'] = $this->_sections['tmp_res_admin']['start'], $this->_sections['tmp_res_admin']['iteration'] = 1;
                 $this->_sections['tmp_res_admin']['iteration'] <= $this->_sections['tmp_res_admin']['total'];
                 $this->_sections['tmp_res_admin']['index'] += $this->_sections['tmp_res_admin']['step'], $this->_sections['tmp_res_admin']['iteration']++):
$this->_sections['tmp_res_admin']['rownum'] = $this->_sections['tmp_res_admin']['iteration'];
$this->_sections['tmp_res_admin']['index_prev'] = $this->_sections['tmp_res_admin']['index'] - $this->_sections['tmp_res_admin']['step'];
$this->_sections['tmp_res_admin']['index_next'] = $this->_sections['tmp_res_admin']['index'] + $this->_sections['tmp_res_admin']['step'];
$this->_sections['tmp_res_admin']['first']      = ($this->_sections['tmp_res_admin']['iteration'] == 1);
$this->_sections['tmp_res_admin']['last']       = ($this->_sections['tmp_res_admin']['iteration'] == $this->_sections['tmp_res_admin']['total']);
?>
  <tr class="over">
    <td><?php echo $this->_tpl_vars['res_admin'][$this->_sections['tmp_res_admin']['index']]['id']; ?>
</td>
    <td><?php echo $this->_tpl_vars['res_admin'][$this->_sections['tmp_res_admin']['index']]['username']; ?>
</td>
    <td><?php if ($this->_tpl_vars['res_admin'][$this->_sections['tmp_res_admin']['index']]['type'] == 'super'): ?>超级管理员<?php else: ?>普通管理员<?php endif; ?></td>
    <td><?php echo $this->_tpl_vars['res_admin'][$this->_sections['tmp_res_admin']['index']]['createtime']; ?>
</td>
    <td colspan="3"><a href="index.php?controller=admin&action=updateRuler&id=<?php echo $this->_tpl_vars['res_admin'][$this->_sections['tmp_res_admin']['index']]['id']; ?>
">更改密码</a> <?php if ($this->_tpl_vars['res_admin'][$this->_sections['tmp_res_admin']['index']]['type'] != 'super'): ?><a href="index.php?controller=admin&action=delRuler&id=<?php echo $this->_tpl_vars['res_admin'][$this->_sections['tmp_res_admin']['index']]['id']; ?>
" onclick="javascript:return confirm('你确定要删除吗？');">删除用户</a><?php endif; ?></td>
  </tr>
  <?php endfor; endif; ?>
</table>
</body>
</html>